﻿using SmartlForm.SimpleCrawler.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartlForm.SimpleCrawler.Events
{
    /// <summary>
    /// 爬虫启动事件
    /// </summary>
    public class OnStartEventArgs
    {
        public Uri Uri { get; set; }// 爬虫URL地址

        public SiteModel SiteConfig { get; set; }

        /// <summary>
        /// 日志标识
        /// </summary>
        public long LogId { get; set; }

        public OnStartEventArgs(Uri uri, SiteModel siteConfig, long logId = 0)
        {
            Uri = uri;
            SiteConfig = siteConfig;
            LogId = logId;
        }
    }
}
